/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2023 -05 -26
 * Time: 19:55
 */
class H2S{
    public static String hexToDecString(String hexString) throws HexFormatException {
        if (!hexString.matches("[0-9a-fA-F]+")) {
            throw new HexFormatException("The input string is not a hexadecimal string.");
        }
        return String.valueOf(Long.parseLong(hexString, 16));
    }
}
